Skip to content

Could you explain how the spam filters work in the repository?(Issue related filter) #26954

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
thiunuwan opened this issue May 31, 2025 · 1 comment
Labels
enhancement Nice to have features. needs triage This issue needs to be confirmed

Comments

@thiunuwan
Copy link

What would you like to see added to BCD?

No

How impactful do you think this enhancement will be?

Question

Do you have anything more you want to share?

Could you explain how the spam filters work in the repository?(Issue related filter)

@thiunuwan thiunuwan added enhancement Nice to have features. needs triage This issue needs to be confirmed labels May 31, 2025
@michaelmberger
Copy link

If you are talking about the issues that are automatically closed and marked as spam, the repository uses Github Actions, which can be found here. https://github.com/mdn/browser-compat-data/actions

The action that is fired when a new issue is created is Close Incomplete Issues
It's configuration can be found here.
https://github.com/mdn/browser-compat-data/blob/main/.github/workflows/close-incomplete-issues.yml

The action uses a helper script found here
https://github.com/queengooborg/invalid-issue-closer/blob/main/src/index.js

The criteria from that file are
const conditions = {
title_contains: core.getInput("title-contains") || undefined,
body_contains: core.getInput("body-contains") || undefined,
body_is_blank: !!core.getInput("body-is-blank"),
};
In my reading, this means that the title must contain content and the body must contain content. I admit I don't understand the body-is-blank part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Nice to have features. needs triage This issue needs to be confirmed
Projects
None yet
Development

No branches or pull requests

2 participants